package com.jiyinit.web.core.activiti.enums;

/**
 * <p></p>
 * <p>  节点变量转换类
 * <PRE>
 * <BR>	修改记录
 * <BR>-----------------------------------------------
 * <BR>	修改日期			修改人			修改内容
 * </PRE>
 *
 * @author jack zh
 * @version 1.0
 * @date 2018/7/19
 * @since 1.0
 */
public enum LvAgreeEnum {
        AgreeUsertask5("usertask_5","gateway_6"), AgreeUsertask8("usertask_8","gateway_10"), AgreeUsertask12("usertask_12","gateway_13"), AgreeUsertask17("usertask_17","gateway_18");
        // 成员变量
        private String name;
        private String key;
        // 构造方法
        private LvAgreeEnum(String key,String name) {
            this.name = name;
            this.key = key;
        }
        // 普通方法
        public static String getName(String index) {
            for (LvAgreeEnum c : LvAgreeEnum.values()) {
                if (c.getKey().equals(index)) {
                    return c.name;
                }
            }
            return null;
        }
        // get set 方法
        public String getName() {
            return name;
        }
        public void setName(String name) {
            this.name = name;
        }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }
}
